<?php
$check_id_health = '/home/luanjunyi/yhhd/py/taras/tools/check_id_health';
?>

<html>
<head>
<title>Taras ID Health Care Center | We do not cure, but we tell you whether it is curable</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css">
<script type="text/javascript" src="js/jquery.js"></script>

<style>
  #idfile-form {
    margin: 20px auto;
  }

  input {
    margin: 5px auto;
  }

  input[type="submit"] {
    width: 220px;
  }
</style>

<script>
  $(document).ready(function() {
     
  });
</script>

</head>

<body>
  <center>
    <form method="POST" action="#" id="idfile-form">

      <!--input type="file" name="idfile" size="70" style="height: 30px"></input-->
      <label for="uname">邮箱:</label><input type="text" name="uname" /> <br/>
      <label for="passwd">密码:</label><input type="text" name="passwd" /> <br/>
      <input type="submit" value="检测"/>
    </form>
    <hr style="background-color: #999999; color: #999999; width: 800px; height: 1px"/>

    <div id="result">
      <?php
    if (isset($_POST['uname']) && isset($_POST['passwd'])) {
         chdir('tmp');
         $uname = $_POST['uname'];
         $passwd = $_POST['passwd'];
         system("$check_id_health $uname $passwd");
    }
      ?>
    </div>
  </center>
</body>
</html>
